package cn.java.exercises;

public class SwitchCase
{
    public static void main(String[] args)
    {
        char   strScore;        //卷面成绩
        String strGrade="";     //学籍成绩

        strScore='C';
        switch (strScore)
        {
            case 'A':
                strGrade="优秀";
                break;
            case 'B':
                strGrade="良好";
                break;
            case 'C':
                strGrade="中等";
                break;
            case 'D':
                strGrade="及格";
                break;
            default:
                strGrade="不及格";
        }

        System.out.println("卷面成绩:"+strScore+",学籍成绩:"+strGrade);
    }
}
